﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LCMS_MVC.Models;

namespace LCMS_MVC.Controllers
{
    public class QueryController : Controller
    {
        //
        // GET: /Query/

        [HttpGet]
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(string txtURI)
        {
            
            var query = new QueryModel(txtURI);
            ViewBag.Title = txtURI;
            return View(query);
        }

    }
}
